<h1>Listing video_products</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Release date</th>
    <th>Added date</th>
    <th>Imdb</th>
    <th>Nr views</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @video_products.each do |video_product| %>
  <tr>
    <td><%= video_product.title %></td>
    <td><%= video_product.release_date %></td>
    <td><%= video_product.added_date %></td>
    <td><%= video_product.imdb_id %></td>
    <td><%= video_product.nr_views %></td>
    <td><%= link_to 'Show', video_product %></td>
    <td><%= link_to 'Edit', edit_video_product_path(video_product) %></td>
    <td><%= link_to 'Destroy', video_product, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Video product', new_video_product_path %>
